﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KnitwearCompany.Models
{
    public class PurchaseItem
    {
        public int Id { get; set; }
        public Product Product { get; set; }
        public int Amount { get; set; }

        public decimal GetSum()
        {
            return Product.Price * Amount;
        }
    }
}